import request from "@/utils/request";

// 查询签约方列表
export function listContractParty(query) {
  return request({
    url: "/contract/ContractParty/list",
    method: "get",
    params: query,
    handleError: true,
  });
}

// 查询签约方详细
export function getContractParty(contractPartyId) {
  return request({
    url: "/contract/ContractParty/" + contractPartyId,
    method: "get",
    handleError: true,
  });
}

// 新增签约方
export function addContractParty(data) {
  return request({
    url: "/contract/ContractParty",
    method: "post",
    data: data,
  });
}

// 修改签约方
export function updateContractParty(data) {
  return request({
    url: "/contract/ContractParty",
    method: "put",
    data: data,
  });
}

// 删除签约方
export function delContractParty(contractPartyId) {
  return request({
    url: "/contract/ContractParty/" + contractPartyId,
    method: "delete",
  });
}
